const mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');
mongoose.connect('mongodb://localhost/xiao');
const mySchema  = new mongoose.Schema( {
    name: String,
    psd: String,
    age: Number,
    hobby: Array,
    contact: Object,
    sex: Boolean,
    height:String,
    weight:String,
    nationality:String,
    professional:String
});
mySchema.plugin(mongoosePaginate);
const User=mongoose.model('User',  mySchema); 
module.exports=User;